package com.dm.cloud.images.service;

import com.github.dockerjava.api.model.Network;
import com.dm.cloud.images.mode.NetworkCreatMode;
import com.dm.cloud.images.mode.NetworkDetail;

import java.util.List;

public interface NetworkService {

    /**
     * 容器网络列表
     * @param name
     * @param nodeId
     * @return
     */
    List<NetworkDetail> list(String name,String nodeId);

    /**
     * 创建网络
     * @param creatMode
     * @return
     */
    NetworkDetail create(NetworkCreatMode creatMode);

    Boolean delete(String nodeId, String networkId);
}
